﻿using SuperX.Common.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace SuperX.DataCenterService.WebAPI
{
    class MethodOfInfo
    {
        /// <summary>
        /// 方法名
        /// </summary>
        public string MethodName { get; set; }

        /// <summary>
        /// 执行对象
        /// </summary>
        public object ExecObjce { get; set; }

        /// <summary>
        /// 方法信息
        /// </summary>
        public MethodInfo MethodInfo { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public FastInvokeHandler Handler { get; set; }

        public object Invoke(object[] args)
        {
            return Handler.Invoke(ExecObjce, args);
        }
    }
}
